package com.testmanager.testmananger.zyyc.interTest.web;

import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;



/**
 * @author hesencun
 * @date: 2021/7/1 2:42 PM
 *
 * 远程接口测试客户端交互接口
 */


@Slf4j
@RestController
@RequestMapping("/yc/intestTest/remoteClient")
public class RemoteClientResource {


    /**
     * 远程执行完测试后，将测试结果以规定形式上传,上传成功后 会触发解析文件任务
     *
     * @param user
     * @param file
     * @return
     */
    @PostMapping("/uploadTestResult")
    public ResponseEntity uploadTestResult( @RequestParam("user") String user,
                                           @RequestParam(value = "file",required = false) MultipartFile file){
        return null;
    }

    /**
     *获取项目状态，用于测试端测试时防止同一项目重复执行测试造成冲突
     * @param name
     * @return
     */
    @PostMapping("/getProjectStatus/{projectName}")
    public ResponseEntity getProjectStatus(@PathVariable("projectName") String name){

        return null;
    }














}
